package extend;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86156
 * Date: 2023-04-11
 * Time: 12:43
 */
public class Animal {

    // 权限修饰符
    // private 子类就无法访问了
    // 私有: 只能在本类当中访问


    public void eat(){
        System.out.println("吃饭");
    }

    public void drink(){
        System.out.println("喝水");
    }
}
